//
//  FeelingTableViewCell.m
//  网络FM
//
//  Created by dlios on 15/5/23.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "FeelingTableViewCell.h"

@implementation FeelingTableViewCell

- (void)awakeFromNib {
 
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



- (void)dealloc
{
    [_anchorName release];
    [_image release];
    [_FMName release];
    [_listen_count release];
    [super dealloc];
    
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createMycell];
    }
    return  self;
}


- (void)createMycell
{
    
    float width = self.frame.size.width;
    UIView * bigView = [[UIView alloc]initWithFrame:CGRectMake(5, 5, [UIScreen mainScreen].bounds.size.width - 10, width / 4 + 12)];
    [bigView setBackgroundColor:[UIColor colorWithRed:240 / 255.0 green:240 / 255.0 blue:240 / 255.0 alpha:1.0f]];
    bigView.layer.cornerRadius = 10;
    bigView.clipsToBounds = YES;
    [self addSubview:bigView];
    [bigView release];
    
    self.image = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5, 80 , 80)];
     [bigView addSubview:  _image];
     self.image.layer.cornerRadius = 5;
    self.image.clipsToBounds = YES;
    [_image release];
    
    self.FMName = [[UILabel alloc]initWithFrame:CGRectMake(95, 10, 300,20)];
    [bigView addSubview:self.FMName];
    [self.FMName setFont:[UIFont systemFontOfSize:14]];
    [self.FMName release];
    
    self.anchorName = [[UILabel alloc]initWithFrame:CGRectMake(95, 35, 160  ,20)];
    [bigView addSubview:self.anchorName];
    [self.anchorName setFont:[UIFont systemFontOfSize:14]];
    self.anchorName.textColor = [UIColor lightGrayColor];
    [self.anchorName release];
    
    self.listen_count= [[UILabel alloc]initWithFrame:CGRectMake(95, 60, 160,20)];
    [bigView addSubview:self.listen_count];
    [self.listen_count setFont:[UIFont systemFontOfSize:14]];
    self.listen_count.textColor = [UIColor lightGrayColor];
    [self.listen_count release];
}

 



@end
